<?php

return array(
    'elements' => array(
        'label_name' => array(
			'type' => 'text',
			'options' => array(
				'order' => 10,
				'label' => 'Метка',
				'required' => true,
				'filters' => array(
					'StringTrim', 'HtmlEntities'
				),
				'validators' => array(),
			)
		),
        'label_rank' => array(
			'type' => 'text',
			'options' => array(
				'order' => 20,
                'label' => 'Вес',
				'required' => false,
				'filters' => array(
					'StringTrim', 'Int',
				),
				'validators' => array(
					array(
						'validator' => 'GreaterThan',
						'options' => array(
							'min' => -1
						)
					)
				),
			)
        ),
 		'submit' => array(
			'type' => 'submit',
			'options' => array(
				'order' => 10000,
            	'title' => 'Добавить',
				'ignore' => true
			)
		)
    )
);

?>